-- UNITDEF -- kawnair_i --
--------------------------------------------------------------------------------

local unitName = "kawnair_i"

--------------------------------------------------------------------------------

unitDef = {
  unitname            = [[kawnair_i]],
  name                = [[Bong Hwang Attack Helicopter]],
  description         = [[Air Support Lv 1]],
  acceleration        = 0.5,
  amphibious          = false,
  bankscale           = [[0.2]], ---was 1.0
  bmcode              = [[1]],
  brakeRate           = 0.5,
  buildCostEnergy     = 0,
  buildCostMetal      = 0,
  builder             = false,
  buildTime           = 0,
  canAttack           = true,
  canFly              = true,
  canFireControl      = 1,
  canGuard            = true,
  canMove             = true,
  canPatrol           = true,
  canstop             = [[1]],
  canSubmerge         = false,
  category            = [[AIR NOTINF TARGET]],  --- leave out  kawn or else kawn targeting will track air
  collide             = true,
  cruiseAlt           = 200,
  defaultmissiontype  = [[VTOL_standby]],
  drag		    = 1.0, --- was 0.05
  explodeAs           = [[death]],
  floater             = true,
  footprintX          = 1,
  footprintZ          = 1,
  hoverAttack         = true,
  iconType            = [[av]],
  idleAutoHeal        = 5,
  idleTime            = 300,
  maneuverleashlength = [[1280]],
  mass                = 100,
  maxDamage           = 3000,
  ---maxFuel             = 250, can add when have a refueler
  maxVelocity         = 8,
  MaxWaterDepth 	    = 1,
  noAutoFire          = false,
  noChaseCategory     = [[AIR NOTARGET]],
  objectName          = [[kawnair_i.s3o]],
  scale               = [[1.0]],
  seismicSignature    = 0,
  selfDestructAs      = [[DEATH]],

  sfxtypes            = {

    explosiongenerators = {
      [[custom:flashmuzzle1]],  --muuzzle?
    },

  },

  sightDistance       = 800,
  smoothAnim          = true,
  steeringmode        = [[1]],
  TEDClass            = [[VTOL]],
  turnRate            = 792,
  workerTime          = 0,

  weapons             = {

    {
      def                = [[aiwep1]],
	badTargetCategory  = [[NOTARGET AIR]],
      mainDir            = [[0 -0.35 1]],
      maxAngleDif        = 120,
      onlyTargetCategory = [[TARGET]],
	  noChaseCatagory    = [[AIR]],
    },

  },


  weaponDefs          = {

    aiwep1 = {
      name                    = [[Auto Cannon]],
      areaOfEffect            = 20,
      avoidFeature            = false,
      burst                   = 4,
      burstrate               = 0.1,
      collideFriendly         = false,
      craterBoost             = 0.15,
      craterMult              = 0.15,

      damage                  = {
        default = 5,
        base    = 1,
      },

      edgeEffectiveness       = 0.5,
      endsmoke                = [[0]],
      explosionGenerator      = [[custom:flashplosion]],
      firestarter             = 70,
	  impactOnly 			= 1,
      impulseBoost            = 0,
      impulseFactor           = 0.2,
      InterceptedByShieldType = 2,
      lineOfSight             = true,
      noSelfDamage            = true,
      pitchtolerance          = 12000,
      range                   = 300, --300 in sheet
      reloadtime              = 4,
      renderType              = 4,
      rgbColor                = [[1 0.95 0.5]],
      soundHit                = [[Rifle]],
      soundStart              = [[medcan]],
      sprayAngle              = 300,
      startsmoke              = [[0]],
      sweepfire               = false,
      tolerance               = 2000,
      turret                  = true,
      weaponTimer             = 1,
      weaponType              = [[Cannon]],
      weaponVelocity          = 1150,
    },
 },

featureDefs         = {
  },
 }

--------------------------------------------------------------------------------

return lowerkeys({ [unitName] = unitDef })

--------------------------------------------------------------------------------
